package com.yiyuan.app.entity.enums;

/**
 * @Author: sunxuzong
 * @Date: 2024/07/19
 */
public enum OrderProductTypeEnum {
    lock_machine(1,"锁机"),
    forbid_look(2,"禁止观看"),
    occupy(3,"包机"),
    series_recharge(4,"连续充值"),
    novice_gift_pack(5,"新手大礼包"),
    activity_pack(6,"活动礼包"),
    recharge_activity(7,"充值活动"),
    month_card(8,"月卡"),
    week_card(9,"周卡"),
    admin(10,"后台充值")
    ;

    private Integer code;

    private String desc;

    OrderProductTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static OrderProductTypeEnum getByCode(Integer code){
        for (OrderProductTypeEnum enums : OrderProductTypeEnum.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return  null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
